package com.yy.wga.goods.feign.request;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
public class SharerSetCommissionReq {
    /**
     * 0 微信小店平台分佣 1机构自己分佣
     */
    @NotNull(message = "佣金类型不能为空")
    @Range(min = 0, max = 1, message = "佣金类型范围在0-1之间")
    private Integer commissionType;

    /**
     * 10 0000  表示10%
     */
    @Range(min = 0, max = 1000000, message = "佣金率范围在0-1000000之间")
    @NotNull(message = "佣金率不能为空")
    private Integer commissionRatio;
}
